
function IO(div_id){
	/** PRIVATE */
	this._div_id = null;

	/** PUBLIC */
	this._constructor = function io__constructor (div_id) {
		this._div_id = div_id;
	}
	
	this.print = function io_print (data_str) {
		// Returns wether the piece can move to the specified location
		var div_obj;
		var par_obj;
		var txt_obj;
		div_obj = document.getElementById(this._div_id);

		txt_obj = document.createTextNode(data_str);

		par_obj = document.createElement("p");
		par_obj.appendChild(txt_obj);

		div_obj.appendChild(par_obj);
		div_obj.scrollTop = div_obj.scrollHeight;
	}

	/** CONSTRUCT ! */
	this._constructor(div_id);
}
